package com.liuyang.second.concurrency.chapter1;

public class SingletonObject2 {
    private static SingletonObject2 instance =null;

    public SingletonObject2() {
    }

    public static SingletonObject2 getInstance(){
        if(instance == null){
            instance = new SingletonObject2();
        }
        return instance;
    }
}
